
using System.Windows;



public partial class LoadFileDialog
{


    public bool i = false;

    public LoadFileDialog()
    {
        InitializeComponent();
    }
    public void LoadFileDialog_Closing(object sender, System.ComponentModel.CancelEventArgs e)
    {
        if (i == false)
        {
            e.Cancel = true;
        }
    }

    public void LoadFileDialog_Loaded(object sender, System.Windows.RoutedEventArgs e)
    {
        if (MS.WindowsAPICodePack.Internal.CoreHelpers.RunningOnWin7 || MS.WindowsAPICodePack.Internal.CoreHelpers.RunningOnVista)
        {
            AppHelper.ExtendGlassFrame(this, new Thickness(-1, -1, -1, -1));
        }
    }
}

